/**   
* @Project:	Mybatis
* @Title: User.java
* @Package com.sise.mybatis.po
* @Description: 封装用户基本信息
* @author: zhiguo.lin   
* @date 2016年8月16日 上午7:53:44
* @CopyRight: CopyRight@2016
* @version V1.0   
*/


package com.sise.mybatis.po;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * @ClassName: User
 * @Description: User持久类,封装用户基本信息
 * @author: zhiguo.lin
 * @date 2016年8月16日 上午7:53:44
 * 
 */


public class User implements Serializable{

    /**
    * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
    */
    
    private static final long serialVersionUID = -4199722360565822545L;

    private Integer id;
    
    private String username;
    
    private String sex;
    
    private Date birthday;
    
    private String address;
    
    private List<Order> orderList;
    
    
    /* (非 Javadoc) 
    * <p>Title: toString</p> 
    * <p>Description: 组装user对象信息</p> 
    * @return 
    * @see java.lang.Object#toString() 
    */ 
    
    
    @Override
    public String toString() {
        
        StringBuffer sb = new StringBuffer();
        
        sb.append("[id:").append(id).append(",username:").append(username)
        
            .append(",sex:").append(sex).append(",birthday").append(birthday)
            
            .append(",address:").append(address).append("]");
        
        return sb.toString();
    }

    
    public Integer getId() {
        return id;
    }

    
    public void setId(Integer id) {
        this.id = id;
    }

    
    public String getUsername() {
        return username;
    }

    
    public void setUsername(String username) {
        this.username = username;
    }

    
    public String getSex() {
        return sex;
    }

    
    public void setSex(String sex) {
        this.sex = sex;
    }

    
    public Date getBirthday() {
        return birthday;
    }

    
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    
    public String getAddress() {
        return address;
    }

    
    public void setAddress(String address) {
        this.address = address;
    }


    
    public List<Order> getOrderList() {
        return orderList;
    }


    
    public void setOrderList(List<Order> orderList) {
        this.orderList = orderList;
    }

}
